class DateConvertUtil {
  DateConvertUtil._();

  /// 秒转化对应的中文天时分秒
  static String getCourseTime(int seconds) {
    int day = seconds ~/ (60 * 60 * 24); //换成天
    int hour = (seconds - (60 * 60 * 24 * day)) ~/ 3600; //总秒数-换算成天的秒数=剩余的秒数    剩余的秒数换算为小时
    int minute = (seconds - 60 * 60 * 24 * day - 3600 * hour) ~/ 60; //总秒数-换算成天的秒数-换算成小时的秒数=剩余的秒数    剩余的秒数换算为分
    int second = seconds - 60 * 60 * 24 * day - 3600 * hour - 60 * minute; //总秒数-换算成天的秒数-换算成小时的秒数-换算为分的秒数=剩余的秒数
    return "$day:$hour:$minute:$second";
  }
}
